package com.zdp.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author sesshomaru
 * @date 2021/5/19 21:37
 */
@SpringBootApplication
@MapperScan(basePackages = "com.zdp.user.mapper")
@ComponentScan(basePackages = {"com.zdp", "org.n3r.idworker"})
@EnableEurekaClient
// 开启hystrix熔断机制
@EnableCircuitBreaker
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
